<?php
namespace app\admin\validate;

use think\Validate;

class PartnersValidate extends Validate
{
    protected $rule = [
        'recom_id'    => 'require',
        'u_name'      => 'require',
        'u_card'      => 'require',
        'u_tel'       => 'require|number',
        'u_store'     => 'require',
        'u_address'   => 'require'
    ];

    protected $message = [
        'recom_id.require'  => '推荐id不能为空',
        'u_name.require'    => '会员姓名不能为空',
        'u_card.require'    => '会员身份证号不能为空',
        'u_tel.require'     => '手机号码不能为空',
        'u_tel.number'      => '手机号码必须是数字',
        'u_store.require'   => '店铺名称不能为空',
        'u_address.require' => '店铺地址不能为空'
    ];
}